{% extends "root/templates/superbase.html" %}

{% block body %}
  {% if flash %}
    <div id="flash">{{ flash }}</div>
  {% endif %}
  
  <div id="header">
    <div id="access">
      {% if user %}
        Logged in as {{ user.email }} /
        <a href="/access/logout">Log Out</a>
      {% else %}
        <a href="/access/login">Log in with Google</a>
      {% endif %}
    </div>
    <div id="nav">
      <a href="/">Home</a>&nbsp;&nbsp;
      <a href="/people/find">Find Person</a>&nbsp;&nbsp;
      <a href="/checkout/list">Checkouts</a>&nbsp;&nbsp;
      <a href="/fieldsets">Field Sets</a>&nbsp;&nbsp;
      <!-- <a href="/batch">Download Data</a>&nbsp;&nbsp; -->
      {% if admin %}
        <a href="/access/permissions">Permissions</a>
      {% endif %}
    </div>
  </div>
  
  <div id="content">
    {% block content %}
    {% endblock %}
  </div>
{% endblock %}